package model

type Channels struct {
	AutoId           `xorm:"extends"`
	ChannelsVisually `xorm:"extends"`
	Feeds string `json:"feeds" xorm:"feeds Text"`
}

func (c *Channels) TableName() string {
	return "channels"
}

type ChannelsVisually struct {
	Name  string `json:"name" xorm:"name varchar(50) not null unique index"`
	Desc  string `json:"desc" xorm:"desc varchar(200) not null"`
}
